import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:xindong/common/xindong_define.dart';

class XinDongBeautyToolsView extends StatelessWidget {
  final bool isEditing;

  const XinDongBeautyToolsView({super.key, this.isEditing = false});

  @override
  Widget build(BuildContext context) {
    return Container(
      width: MediaQuery.of(context).size.width,
      height: 350 + bottomBarHeight,
      padding: EdgeInsets.only(bottom: bottomBarHeight),
      child: Stack(
        alignment: Alignment.bottomCenter,
        children: [
          Container(height: 300, color: isEditing ? Colors.transparent : Colors.black87),
          const AndroidView(
            viewType: 'xindong_beauty_tools',
            creationParamsCodec: StandardMessageCodec(),
          ),
        ],
      ),
    );
  }
}
